/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;
import queenb.web.util.Util;

/**
 *
 * @author Nguyen Hung
 */
public class V500 extends DataControl<V500> implements Serializable {

    @Mapping(name = "fh000", typeMapping = OracleTypes.INTEGER)
    private int fh000;
    @Mapping(name = "pv500", typeMapping = OracleTypes.INTEGER)
    private int pv500;
    @Mapping(name = "pv050", typeMapping = OracleTypes.INTEGER)
    private int pv050;
    @Mapping(name = "fv050", typeMapping = OracleTypes.INTEGER)
    private int fv050;
    @Mapping(name = "fs200", typeMapping = OracleTypes.INTEGER)
    private int fs200;
    @Mapping(name = "fv200", typeMapping = OracleTypes.INTEGER)
    private int fv200;//id han muc
    @Mapping(name = "vv202", typeMapping = OracleTypes.CHAR)
    private String vv202;
    @Mapping(name = "vv501", typeMapping = OracleTypes.CHAR)
    private String vv501;
    @Mapping(name = "vv502", typeMapping = OracleTypes.CHAR)
    private String vv502;
    @Mapping(name = "vv503", typeMapping = OracleTypes.CHAR)
    private String vv503;
    @Mapping(name = "vv504", typeMapping = OracleTypes.CHAR)
    private String vv504;
    @Mapping(name = "vv505", typeMapping = OracleTypes.CHAR)
    private String vv505;
    @Mapping(name = "vv506", typeMapping = OracleTypes.CHAR)
    private String vv506;
    @Mapping(name = "vn507", typeMapping = OracleTypes.CHAR)
    private String vn507s;
    @Mapping(name = "vn508", typeMapping = OracleTypes.CHAR)
    private String vn508s;
    @Mapping(name = "vn509", typeMapping = OracleTypes.CHAR)
    private String vn509s;
    @Mapping(name = "vn510", typeMapping = OracleTypes.CHAR)
    private String vn510s;
    @Mapping(name = "vn511", typeMapping = OracleTypes.CHAR)
    private String vn511s;
    @Mapping(name = "vn512", typeMapping = OracleTypes.INTEGER)
    private int vn512;
    @Mapping(name = "vn513", typeMapping = OracleTypes.INTEGER)
    private int vn513;
    @Mapping(name = "vn514", typeMapping = OracleTypes.INTEGER)
    private int vn514;
    @Mapping(name = "vn515", typeMapping = OracleTypes.INTEGER)
    private int vn515;
    @Mapping(name = "fh200", typeMapping = OracleTypes.INTEGER)
    private int fh200;
    @Mapping(name = "fs400", typeMapping = OracleTypes.CHAR)
    private String fs400;
    @Mapping(name = "fs410", typeMapping = OracleTypes.CHAR)
    private String fs410;
    @Mapping(name = "fs420", typeMapping = OracleTypes.CHAR)
    private String fs420;
    @Mapping(name = "fs430", typeMapping = OracleTypes.CHAR)
    private String fs430;
    @Mapping(name = "fs440", typeMapping = OracleTypes.CHAR)
    private String fs440;
    @Mapping(name = "fs450", typeMapping = OracleTypes.CHAR)
    private String fs450;
    @Mapping(name = "val", typeMapping = OracleTypes.INTEGER)
    private int val;
    @Mapping(name = "label", typeMapping = OracleTypes.CHAR)
    private String label;
    @Mapping(name = "label1", typeMapping = OracleTypes.CHAR)
    private String label1;
    //V050
    @Mapping(name = "vv051", typeMapping = OracleTypes.CHAR)
    private String vv051;
    @Mapping(name = "vv052", typeMapping = OracleTypes.CHAR)
    private String vv052;
    @Mapping(name = "vn053", typeMapping = OracleTypes.INTEGER)
    private int vn053;
    @Mapping(name = "vn054", typeMapping = OracleTypes.INTEGER)
    private int vn054;
    @Mapping(name = "vn055", typeMapping = OracleTypes.INTEGER)
    private int vn055;
    @Mapping(name = "vn056", typeMapping = OracleTypes.INTEGER)
    private int vn056;
    @Mapping(name = "vn057", typeMapping = OracleTypes.INTEGER)
    private int vn057;
    @Mapping(name = "vn058", typeMapping = OracleTypes.INTEGER)
    private int vn058;
    @Mapping(name = "vn059", typeMapping = OracleTypes.INTEGER)
    private int vn059;
    @Mapping(name = "vn060", typeMapping = OracleTypes.INTEGER)
    private int vn060;
    @Mapping(name = "vn061", typeMapping = OracleTypes.INTEGER)
    private int vn061;
    @Mapping(name = "vn062", typeMapping = OracleTypes.INTEGER)
    private int vn062;
    @Mapping(name = "vn063", typeMapping = OracleTypes.INTEGER)
    private int vn063;
    @Mapping(name = "vn064", typeMapping = OracleTypes.INTEGER)
    private int vn064;
    @Mapping(name = "pv200", typeMapping = OracleTypes.INTEGER)
    private int pv200;
    @Mapping(name = "fk100", typeMapping = OracleTypes.INTEGER)
    private int fk100;
    @Mapping(name = "kv103", typeMapping = OracleTypes.CHAR)
    private String kv103;
    @Mapping(name = "vd091", typeMapping = OracleTypes.DATE)
    private Date vd091;
    @Mapping(name = "vv092", typeMapping = OracleTypes.CHAR)
    private String vv092;
    @Mapping(name = "vd093", typeMapping = OracleTypes.DATE)
    private Date vd093;
    @Mapping(name = "vv094", typeMapping = OracleTypes.CHAR)
    private String vv094;
    @Mapping(name = "vv067", typeMapping = OracleTypes.CHAR)
    private String vv067;
    @Mapping(name = "vers", typeMapping = OracleTypes.INTEGER)
    private int vers;
     @Mapping(name = "maxvers", typeMapping = OracleTypes.INTEGER)
    private int maxvers;
    @Mapping(name = "vl527", typeMapping = OracleTypes.CHAR)
    private String vl527;
    @Mapping(name = "vv201", typeMapping = OracleTypes.CHAR)
    private String vv201;
    private String nameFk350;
    private String nameFV200;
    private boolean editRow;
    private String tt1;
    private String tt2;
    private String tt3;
    private String tt4;
    private String vn507St;//Price
    private int indexID;
    private double vn507;
    private double vn508;
    private double vn509;
    private double vn510;
    private double vn511;
    /**
     * @return the fh000
     */
    public int getFh000() {
        return fh000;
    }

    /**
     * @param fh000 the fh000 to set
     */
    public void setFh000(int fh000) {
        this.fh000 = fh000;
    }

    /**
     * @return the fv050
     */
    public int getFv050() {
        return fv050;
    }

    /**
     * @param fv050 the fv050 to set
     */
    public void setFv050(int fv050) {
        this.fv050 = fv050;
    }

    /**
     * @return the fs200
     */
    public int getFs200() {
        return fs200;
    }

    /**
     * @param fs200 the fs200 to set
     */
    public void setFs200(int fs200) {
        this.fs200 = fs200;
    }

    /**
     * @return the fv200
     */
    public int getFv200() {
        return fv200;
    }

    /**
     * @param fv200 the fv200 to set
     */
    public void setFv200(int fv200) {
        this.fv200 = fv200;
    }

    /**
     * @return the vv501
     */
    public String getVv501() {
        return vv501;
    }

    /**
     * @param vv501 the vv501 to set
     */
    public void setVv501(String vv501) {
        this.vv501 = vv501;
    }

    /**
     * @return the vv502
     */
    public String getVv502() {
        return vv502;
    }

    /**
     * @param vv502 the vv502 to set
     */
    public void setVv502(String vv502) {
        this.vv502 = vv502;
    }

    /**
     * @return the vv503
     */
    public String getVv503() {
        return vv503;
    }

    /**
     * @param vv503 the vv503 to set
     */
    public void setVv503(String vv503) {
        this.vv503 = vv503;
    }

    /**
     * @return the vv504
     */
    public String getVv504() {
        return vv504;
    }

    /**
     * @param vv504 the vv504 to set
     */
    public void setVv504(String vv504) {
        this.vv504 = vv504;
    }

    /**
     * @return the vv505
     */
    public String getVv505() {
        return vv505;
    }

    /**
     * @param vv505 the vv505 to set
     */
    public void setVv505(String vv505) {
        this.vv505 = vv505;
    }

    /**
     * @return the vv506
     */
    public String getVv506() {
        if (vv506 == "1") {
            this.vv506 = "VND";
        } else {
            this.vv506 = "USD";
        }
        return vv506;
    }

    /**
     * @param vv506 the vv506 to set
     */
    public void setVv506(String vv506) {
        this.vv506 = vv506;
    }

    /**
     * @return the fh200
     */
    public int getFh200() {
        return fh200;
    }

    /**
     * @param fh200 the fh200 to set
     */
    public void setFh200(int fh200) {
        this.fh200 = fh200;
    }

    /**
     * @return the fs400
     */
    public String getFs400() {
        return fs400;
    }

    /**
     * @param fs400 the fs400 to set
     */
    public void setFs400(String fs400) {
        this.fs400 = fs400;
    }

    /**
     * @return the fs410
     */
    public String getFs410() {
        return fs410;
    }

    /**
     * @param fs410 the fs410 to set
     */
    public void setFs410(String fs410) {
        this.fs410 = fs410;
    }

    /**
     * @return the fs420
     */
    public String getFs420() {
        return fs420;
    }

    /**
     * @param fs420 the fs420 to set
     */
    public void setFs420(String fs420) {
        this.fs420 = fs420;
    }

    /**
     * @return the fs430
     */
    public String getFs430() {
        return fs430;
    }

    /**
     * @param fs430 the fs430 to set
     */
    public void setFs430(String fs430) {
        this.fs430 = fs430;
    }

    /**
     * @return the fs440
     */
    public String getFs440() {
        return fs440;
    }

    /**
     * @param fs440 the fs440 to set
     */
    public void setFs440(String fs440) {
        this.fs440 = fs440;
    }

    /**
     * @return the fs450
     */
    public String getFs450() {
        return fs450;
    }

    /**
     * @param fs450 the fs450 to set
     */
    public void setFs450(String fs450) {
        this.fs450 = fs450;
    }

    /**
     * @return the pv500
     */
    public int getPv500() {
        return pv500;
    }

    /**
     * @param pv500 the pv500 to set
     */
    public void setPv500(int pv500) {
        this.pv500 = pv500;
    }

    /**
     * @return the indexID
     */
    public int getIndexID() {
        return indexID;
    }

    /**
     * @param indexID the indexID to set
     */
    public void setIndexID(int indexID) {
        this.indexID = indexID;
    }

    /**
     * @return the val
     */
    public int getVal() {
        return val;
    }

    /**
     * @param val the val to set
     */
    public void setVal(int val) {
        this.val = val;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the vv202
     */
    public String getVv202() {
        return vv202;
    }

    /**
     * @param vv202 the vv202 to set
     */
    public void setVv202(String vv202) {
        this.vv202 = vv202;
    }

    /**
     * @return the vn053
     */
    public int getVn053() {
        return vn053;
    }

    /**
     * @param vn053 the vn053 to set
     */
    public void setVn053(int vn053) {
        this.vn053 = vn053;
    }

    /**
     * @return the vn054
     */
    public int getVn054() {
        return vn054;
    }

    /**
     * @param vn054 the vn054 to set
     */
    public void setVn054(int vn054) {
        this.vn054 = vn054;
    }

    /**
     * @return the pv200
     */
    public int getPv200() {
        return pv200;
    }

    /**
     * @param pv200 the pv200 to set
     */
    public void setPv200(int pv200) {
        this.pv200 = pv200;
    }

    /**
     * @return the vn512
     */
    public int getVn512() {
        return vn512;
    }

    /**
     * @param vn512 the vn512 to set
     */
    public void setVn512(int vn512) {
        this.vn512 = vn512;
    }

    /**
     * @return the vn513
     */
    public int getVn513() {
        return vn513;
    }

    /**
     * @param vn513 the vn513 to set
     */
    public void setVn513(int vn513) {
        this.vn513 = vn513;
    }

    /**
     * @return the vn514
     */
    public int getVn514() {
        return vn514;
    }

    /**
     * @param vn514 the vn514 to set
     */
    public void setVn514(int vn514) {
        this.vn514 = vn514;
    }

    /**
     * @return the vn515
     */
    public int getVn515() {
        return vn515;
    }

    /**
     * @param vn515 the vn515 to set
     */
    public void setVn515(int vn515) {
        this.vn515 = vn515;
    }

    /**
     * @return the vv051
     */
    public String getVv051() {
        return vv051;
    }

    /**
     * @param vv051 the vv051 to set
     */
    public void setVv051(String vv051) {
        this.vv051 = vv051;
    }

    /**
     * @return the vv052
     */
    public String getVv052() {
        return vv052;
    }

    /**
     * @param vv052 the vv052 to set
     */
    public void setVv052(String vv052) {
        this.vv052 = vv052;
    }

    /**
     * @return the vn057
     */
    public int getVn057() {
        return vn057;
    }

    /**
     * @param vn057 the vn057 to set
     */
    public void setVn057(int vn057) {
        this.vn057 = vn057;
    }

    /**
     * @return the vn058
     */
    public int getVn058() {
        return vn058;
    }

    /**
     * @param vn058 the vn058 to set
     */
    public void setVn058(int vn058) {
        this.vn058 = vn058;
    }

    /**
     * @return the vn059
     */
    public int getVn059() {
        return vn059;
    }

    /**
     * @param vn059 the vn059 to set
     */
    public void setVn059(int vn059) {
        this.vn059 = vn059;
    }

    /**
     * @return the vn060
     */
    public int getVn060() {
        return vn060;
    }

    /**
     * @param vn060 the vn060 to set
     */
    public void setVn060(int vn060) {
        this.vn060 = vn060;
    }

    /**
     * @return the vn061
     */
    public int getVn061() {
        return vn061;
    }

    /**
     * @param vn061 the vn061 to set
     */
    public void setVn061(int vn061) {
        this.vn061 = vn061;
    }

    /**
     * @return the vn062
     */
    public int getVn062() {
        return vn062;
    }

    /**
     * @param vn062 the vn062 to set
     */
    public void setVn062(int vn062) {
        this.vn062 = vn062;
    }

    /**
     * @return the vn063
     */
    public int getVn063() {
        return vn063;
    }

    /**
     * @param vn063 the vn063 to set
     */
    public void setVn063(int vn063) {
        this.vn063 = vn063;
    }

    /**
     * @return the vn064
     */
    public int getVn064() {
        return vn064;
    }

    /**
     * @param vn064 the vn064 to set
     */
    public void setVn064(int vn064) {
        this.vn064 = vn064;
    }

    /**
     * @return the vn056
     */
    public int getVn056() {
        return vn056;
    }

    /**
     * @param vn056 the vn056 to set
     */
    public void setVn056(int vn056) {
        this.vn056 = vn056;
    }

    /**
     * @return the fk100
     */
    public int getFk100() {
        return fk100;
    }

    /**
     * @param fk100 the fk100 to set
     */
    public void setFk100(int fk100) {
        this.fk100 = fk100;
    }

    /**
     * @return the vn055
     */
    public int getVn055() {
        return vn055;
    }

    /**
     * @param vn055 the vn055 to set
     */
    public void setVn055(int vn055) {
        this.vn055 = vn055;
    }

    /**
     * @return the kv103
     */
    public String getKv103() {
        return kv103;
    }

    /**
     * @param kv103 the kv103 to set
     */
    public void setKv103(String kv103) {
        this.kv103 = kv103;
    }

    /**
     * @return the pv050
     */
    public int getPv050() {
        return pv050;
    }

    /**
     * @param pv050 the pv050 to set
     */
    public void setPv050(int pv050) {
        this.pv050 = pv050;
    }

    /**
     * @return the nameFk350
     */
    public String getNameFk350() {
        return nameFk350;
    }

    /**
     * @param nameFk350 the nameFk350 to set
     */
    public void setNameFk350(String nameFk350) {
        this.nameFk350 = nameFk350;
    }

    /**
     * @return the nameFV200
     */
    public String getNameFV200() {
        return nameFV200;
    }

    /**
     * @param nameFV200 the nameFV200 to set
     */
    public void setNameFV200(String nameFV200) {
        this.nameFV200 = nameFV200;
    }

    /**
     * @return the editRow
     */
    public boolean isEditRow() {
        return editRow;
    }

    /**
     * @param editRow the editRow to set
     */
    public void setEditRow(boolean editRow) {
        this.editRow = editRow;
    }

    /**
     * @return the tt1
     */
    public String getTt1() {
        tt1 = Util.numberformater(Double.valueOf(String.valueOf(this.getVn509())), "##,###,###");
        return tt1;
    }

    /**
     * @param tt1 the tt1 to set
     */
    public void setTt1(String tt1) {
        this.tt1 = tt1;
    }

    /**
     * @return the tt2
     */
    public String getTt2() {
        tt2 = Util.numberformater(Double.valueOf(String.valueOf(this.getVn511())), "##,###,###");
        return tt2;
    }

    /**
     * @param tt2 the tt2 to set
     */
    public void setTt2(String tt2) {
        this.tt2 = tt2;
    }

    /**
     * @return the tt3
     */
    public String getTt3() {
        tt3 = Util.numberformater(Double.valueOf(String.valueOf(this.getVn513())), "##,###,###");
        return tt3;
    }

    /**
     * @param tt3 the tt3 to set
     */
    public void setTt3(String tt3) {
        this.tt3 = tt3;
    }

    /**
     * @return the tt4
     */
    public String getTt4() {
        tt4 = Util.numberformater(Double.valueOf(String.valueOf(this.getVn515())), "##,###,###");
        return tt4;
    }

    /**
     * @param tt4 the tt4 to set
     */
    public void setTt4(String tt4) {
        this.tt4 = tt4;
    }

    /**
     * @return the vn057St
     */
    public String getVn507St() {
        vn507St = Util.numberformater(Double.valueOf(String.valueOf(this.getVn507())), "##,###,###");

        return vn507St;
    }

    /**
     * @param vn057St the vn057St to set
     */
    public void setVn507St(String vn507St) {
        this.vn507St = vn507St;
    }

    /**
     * @return the vv067
     */
    public String getVv067() {
        return vv067;
    }

    /**
     * @param vv067 the vv067 to set
     */
    public void setVv067(String vv067) {
        this.vv067 = vv067;
    }

    /**
     * @return the vd091
     */
    public Date getVd091() {
        return vd091;
    }

    /**
     * @param vd091 the vd091 to set
     */
    public void setVd091(Date vd091) {
        this.vd091 = vd091;
    }

    /**
     * @return the vv092
     */
    public String getVv092() {
        return vv092;
    }

    /**
     * @param vv092 the vv092 to set
     */
    public void setVv092(String vv092) {
        this.vv092 = vv092;
    }

    /**
     * @return the vd093
     */
    public Date getVd093() {
        return vd093;
    }

    /**
     * @param vd093 the vd093 to set
     */
    public void setVd093(Date vd093) {
        this.vd093 = vd093;
    }

    /**
     * @return the vv094
     */
    public String getVv094() {
        return vv094;
    }

    /**
     * @param vv094 the vv094 to set
     */
    public void setVv094(String vv094) {
        this.vv094 = vv094;
    }

   

    /**
     * @return the vers
     */
    public int getVers() {
        return vers;
    }

    /**
     * @param vers the vers to set
     */
    public void setVers(int vers) {
        this.vers = vers;
    }

    /**
     * @return the maxvers
     */
    public int getMaxvers() {
        return maxvers;
    }

    /**
     * @param maxvers the maxvers to set
     */
    public void setMaxvers(int maxvers) {
        this.maxvers = maxvers;
    }

    /**
     * @return the label1
     */
    public String getLabel1() {
        return label1;
    }

    /**
     * @param label1 the label1 to set
     */
    public void setLabel1(String label1) {
        this.label1 = label1;
    }

    /**
     * @return the vl527
     */
    public String getVl527() {
        return vl527;
    }

    /**
     * @param vl527 the vl527 to set
     */
    public void setVl527(String vl527) {
        this.vl527 = vl527;
    }

    /**
     * @return the vv201
     */
    public String getVv201() {
        return vv201;
    }

    /**
     * @param vv201 the vv201 to set
     */
    public void setVv201(String vv201) {
        this.vv201 = vv201;
    }

    /**
     * @return the vn507s
     */
    public String getVn507s() {
        return vn507s;
    }

    /**
     * @param vn507s the vn507s to set
     */
    public void setVn507s(String vn507s) {
        this.vn507s = vn507s;
    }

    /**
     * @return the vn508s
     */
    public String getVn508s() {
        return vn508s;
    }

    /**
     * @param vn508s the vn508s to set
     */
    public void setVn508s(String vn508s) {
        this.vn508s = vn508s;
    }

    /**
     * @return the vn509s
     */
    public String getVn509s() {
        return vn509s;
    }

    /**
     * @param vn509s the vn509s to set
     */
    public void setVn509s(String vn509s) {
        this.vn509s = vn509s;
    }

    /**
     * @return the vn510s
     */
    public String getVn510s() {
        return vn510s;
    }

    /**
     * @param vn510s the vn510s to set
     */
    public void setVn510s(String vn510s) {
        this.vn510s = vn510s;
    }

    /**
     * @return the vn511s
     */
    public String getVn511s() {
        return vn511s;
    }

    /**
     * @param vn511s the vn511s to set
     */
    public void setVn511s(String vn511s) {
        this.vn511s = vn511s;
    }

    /**
     * @return the vn507
     */
    public double getVn507() {
        
        return Double.valueOf(getVn507s());
    }

    /**
     * @param vn507 the vn507 to set
     */
    public void setVn507(double vn507) {
        this.vn507 = vn507;
    }

    /**
     * @return the vn508
     */
    public double getVn508() {
        return Double.valueOf(getVn508s());
    }

    /**
     * @param vn508 the vn508 to set
     */
    public void setVn508(double vn508) {
        this.vn508 = vn508;
    }

    /**
     * @return the vn509
     */
    public double getVn509() {
        return Double.valueOf(getVn509s());
    }

    /**
     * @param vn509 the vn509 to set
     */
    public void setVn509(double vn509) {
        this.vn509 = vn509;
    }

    /**
     * @return the vn510
     */
    public double getVn510() {
        return Double.valueOf(getVn510s());
    }

    /**
     * @param vn510 the vn510 to set
     */
    public void setVn510(double vn510) {
        this.vn510 = vn510;
    }

    /**
     * @return the vn511
     */
    public double getVn511() {
        return Double.valueOf(getVn511s());
    }

    /**
     * @param vn511 the vn511 to set
     */
    public void setVn511(double vn511) {
        this.vn511 = vn511;
    }

    
}
